<?php
/**
 * Created by PhpStorm.
 * User: 84071
 * Date: 2018-02-23
 * Time: 9:51
 */
namespace app\Common\validate;
use think\Validate;
class UserMoney extends Validate{
    protected $rule =   [
        'money'  => 'require|number',

        '__token__' => 'token',
    ];

    protected $message  =   [
        'money.require' => '请输入金额！',
        'money.number' => '金额输入错误！',

        '__token__.token' => '已超时，请重试！',

    ];
    protected $scene = [
        'addmoney' => ['money','__token__'],
    ];
}